Ext.define('Act.view.region.Left',{
  extend: 'Ext.panel.Panel',
  alias: 'widget.leftregion',

  layout: 'accordion',
  width: 220,
  border: false,

  initComponent: function(){
    var me = this;
    this.items = [{
      title: '基础数据',
      layout: 'fit',
      dockedItems: {
        xtype: 'toolbar',
        border: false,
        items: [{
          text: '展开',
          icon: '/asset/img/button/expanded.png'
        },{
          text:'折叠',
          icon: '/asset/img/button/collapsed.png'
        },{
          text: '刷新',
          icon: '/asset/img/button/refresh.png'
        }]
      },
      items: [ {
        xtype: 'treepanel',
        border: false,
        rootVisible: false,
        root: {
          expanded: true,
          text: 'Root',
          children: [{
            text: '页面管理',
            expanded: false,
            leaf: true
          },{
            text: '导航目录',
            expanded: false,
            leaf: true
          }]
        },
        listeners: {
          'itemclick': function(view, record, item, index, e){
            App.addNewTab('aaa-333-33344','/dbe');
          }
        }
      }]
    },{
      title: '开发套件'
    }];
    this.callParent(arguments);
  },

});